package com.ydl.shopping.constant;

/**
 * 缓存静态常量
 *
 * @author 林武泰
 */
public class RedisConstants {
    /** 查询时间 */
    public static final Long QUERY_TIME = 5L;

    /** 登录密码错误 */
    public static final String LOGIN_PASSWORD_ERROR = "login:error:";

    /** 用户登录Security信息 */
    public static final String LOGIN_KEY = "login:";
    /** 用户登录Security信息有效期限(分钟) */
    public static final Long LOGIN_KEY_TTL = 30L;

    // #####################系统功能模块篇###########################
    /** 单个用户Key */
    public static final String USER_KEY = "user:";
    /** 单个角色Key */
    public static final String ROLE_KEY = "role:";
    /** 单个用户角色Key */
    public static final String USER_ROLE_KEY = "user:role:";
    /** 单个菜单Key */
    public static final String MENU_KEY = "menu:";
    /** 单个角色菜单Key */
    public static final String ROLE_MENU_KEY = "role:menu:";
    /** 单个操作日志Key */
    public static final String LOG_KEY = "system:log:";
    /** 单个登录访问日志Key */
    public static final String LOGIN_INFO_KEY = "system:login:info:";
}
